Skip to content

chore: migrate to Node 24 and fix TypeScript catch variable typing#1297

Merged
Spiral-Memory merged 1 commit into
RocketChat:developfrom
Aryan-Verma-999:node-24-migration
May 18, 2026
Merged

chore: migrate to Node 24 and fix TypeScript catch variable typing#1297
Spiral-Memory merged 1 commit into
RocketChat:developfrom
Aryan-Verma-999:node-24-migration

Conversation

@Aryan-Verma-999
Copy link
Copy Markdown
Contributor

@Aryan-Verma-999 Aryan-Verma-999 commented May 18, 2026

Migrate to Node.js 24 and fix TypeScript catch variable typing

Acceptance Criteria fulfillment

  • Update .nvmrc and all GitHub Actions workflows (build-and-lint, build-pr, deploy, playwright) from Node 22 to Node 24
  • Update packages/docs/package.json engine requirement to >=24.0.0
  • Fix TS2339: Property 'message' does not exist on type '{}' build errors in EmbeddedChatApi.ts replaced unsafe err?.message with proper err instanceof Error ? err.message : err type narrowing across 28 catch blocks
  • Bump Storybook dependencies from ^8.0.0 to ^8.6.18 in packages/react and packages/ui-elements for React 19 compatibility
  • Improve EmbeddedChat re-instantiation logic use rcInstanceRef to prevent stale closures and clear global auth/message state on host/room change
  • All CI checks pass locally

Video/Screenshots

N/A — infrastructure/build changes only, no visual UI changes.

PR Test Details

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-1297 after approval. Contributors are requested to replace <pr_number> with the actual PR number.

- Update .nvmrc to v24.0.0
- Update all GitHub Actions workflows to node-version 24
- Update packages/docs engines to >=24.0.0
- Fix TS2339 in EmbeddedChatApi.ts: use instanceof Error for catch variables
- Bump Storybook deps to ^8.6.18 in react and ui-elements packages
- Fix arrow-body-style lint error in EmbeddedChat.js
- Improve EmbeddedChat re-instantiation logic with rcInstanceRef and state clearing
@Spiral-Memory
Copy link
Copy Markdown
Collaborator

LGTM! Thanks @Aryan-Verma-999

@Spiral-Memory Spiral-Memory merged commit e0e9638 into RocketChat:develop May 18, 2026
4 checks passed
github-actions Bot added a commit that referenced this pull request May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants